import { createStore } from "vuex";

export default createStore({
  state: {
	username:  localStorage.getItem('nickname') || '未登录',
	headimg:  localStorage.getItem('img') || '',
	role:'',
	boole:false,
	carts:[],
	hotid:''
  },
  mutations: {
	setUsername(state,username){
			state.username = username
		}
  },
  actions: {},
  modules: {},
});
